﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
{-include file="`$__PHY_WEB``$__DIR_ADM`/block/meta.tpl"-}
<title>艺术家加入 - 后台</title>
</head>

<body>
<div class="sAll">

{-include file="`$__PHY_WEB``$__DIR_ADM`/block/header.tpl"-}
{-php-}include(__PHY_WEB.__DIR_ADM."/block/menu.php");{-/php-}
{-include file="`$__PHY_WEB``$__DIR_ADM`/block/menu.tpl" uL=$rNav-}

<div class="sL">
	<div class="sW main">
<!-- <main> -->
{- if $sMsg -}{- include file="`$__PHY_WEB``$__DIR_ADM`/block/message.tpl" -}{- /if -}

{- if 'list'==$sAction -}
<div class="sL list">
	<form method="get">
	<p>报名列表</p>
	</form>
	<table width="800">
		<tr>
			<td colspan="3">状态：
				{-if -1==$rP.status-}<span>审核没过的</span>{-else-}
				<a href="?status=-1">审核没过的</a>{-/if-}
				{-if 0==$rP.status-}<span>待审核的</span>{-else-}
				<a href="?status=0">待审核的</a>{-/if-}
				{-if 1==$rP.status-}<span>审核通过的</span>{-else-}
				<a href="?status=1">审核通过的</a>{-/if-}
			</td>
			<td colspan="6" align="right">翻页条：
{-html_pager max=$rPager.Max page=$rPager.Num
	link="<a href=\"?status=`$smarty.get.status`&`$rPager.Req`={X}\">{X}</a>"
	text="<span>{X}</span>"
	range=5
-} | 每页{-$rPager.Sze-}条
			</td>
		</tr>
		<tr class="capt">
			<td>申请时间</td>
			<td>用户昵称</td>
			<td>真实姓名</td>
			<td>照片</td>
			<td>作品1</td>
			<td>作品2</td>
			<td>作品3</td>
			<td>状态</td>
			<td>&nbsp;</td>
		</tr>
{-section name=i loop=$rList-}
		<tr>
			<td>{-$rList[i].time_added|substr:5:11-} ({-$rList[i].time_added|overtime|escape:html-})</td>
			<td><span title="{-$rList[i].user_nick|escape:html-}">{-$rList[i].user_nick|td_truncate:30|escape:html-}</span></td>
			<td><span title="{-$rList[i].sign|escape:html-}">{-$rList[i].sign|td_truncate:30|escape:html-}</span></td>
			<td>{-if $rList[i].photo_url-}<a href="{-$__DIR_STO-}{-$rList[i].photo_url-}" target="_blank">photo</a>{-else-}<i>empty</i>{-/if-}</td>
			<td>{-if $rList[i].work1_url-}<a href="{-$__DIR_STO-}{-$rList[i].work1_url-}" target="_blank">work1</a>{-else-}<i>empty</i>{-/if-}</td>
			<td>{-if $rList[i].work2_url-}<a href="{-$__DIR_STO-}{-$rList[i].work2_url-}" target="_blank">work2</a>{-else-}<i>empty</i>{-/if-}</td>
			<td>{-if $rList[i].work3_url-}<a href="{-$__DIR_STO-}{-$rList[i].work3_url-}" target="_blank">work3</a>{-else-}<i>empty</i>{-/if-}</td>
			<td>{-$rList[i].status|escape:html-}</td>
			<td><a href="?action=edit&id={-$rList[i].id-}">修改</a></td>
		</tr>
{-/section-}
		<tr class="capt">
			<td>申请时间</td>
			<td>用户昵称</td>
			<td>真实姓名</td>
			<td>照片</td>
			<td>作品1</td>
			<td>作品2</td>
			<td>作品3</td>
			<td>状态</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td colspan="3">&nbsp;</td>
			<td colspan="6" align="right">翻页条：
{-html_pager max=$rPager.Max page=$rPager.Num
	link="<a href=\"?status=`$smarty.get.status`&`$rPager.Req`={X}\">{X}</a>"
	text="<span>{X}</span>"
	range=5
-} | 每页{-$rPager.Sze-}条
			</td>
		</tr>
	</table>
</div>
{- elseif 'edit'==$sAction -}
<div class="sL edit">
	<form method="get">
	<p>详细信息</p>
	</form>
	<table>
		<form method="post" action="?" enctype="multipart/form-data">
		<input type="hidden" name="id" value="{-$rOne.id-}" />
		<tr>
			<td class="indc">申请时间：</td>
			<td>{-$rOne.time_added|substr:5:11-} ({-$rOne.time_added|overtime|escape:html-})</td>
		</tr>
		<tr>
			<td class="indc">用户昵称：</td>
			<td>{-$rOne.user_nick|escape:html-}</td>
		</tr>
		<tr>
			<td class="indc">真实姓名：</td>
			<td>{-$rOne.sign|escape:html-} &nbsp; &nbsp; 性别：{-$rOne.gender|escape:html-}</td>
		</tr>
		<tr>
			<td class="indc">头像照片：</td>
			<td><a href="{-$__DIR_STO-}{-$rOne.photo_url-}" target="_blank"><img src="{-$__DIR_STO-}{-$rOne.photo_url-}" width="220" height="220" /></a></td>
		</tr>
		<tr>
			<td class="indc">展示地址：</td>
			<td>{-$rOne.demo|escape:html|nl2br-}</td>
		</tr>
		<tr>
			<td class="indc">简介：</td>
			<td>{-$rOne.description|escape:html|nl2br-}</td>
		</tr>
		<tr>
			<td class="indc">作品展示：</td><td>
				<a href="{-$__DIR_STO-}{-$rOne.work1_url-}" target="_blank"><img src="{-$__DIR_STO-}{-$rOne.work1_url-}" width="166" height="166" /></a>
				<a href="{-$__DIR_STO-}{-$rOne.work2_url-}" target="_blank"><img src="{-$__DIR_STO-}{-$rOne.work2_url-}" width="166" height="166" /></a>
				<a href="{-$__DIR_STO-}{-$rOne.work3_url-}" target="_blank"><img src="{-$__DIR_STO-}{-$rOne.work3_url-}" width="166" height="166" /></a>
			</td>
		</tr>
		<tr>
			<td colspan="2"><hr /></td>
		</tr>
		<tr>
			<td class="indc">审核情况：</td><td>
				<select name="status">
					<option value="1"{-if 1==$rOne.status-} selected="selected"{-/if-}>审批通过，升级为艺术家</option>
					<option value="0"{-if 0==$rOne.status-} selected="selected"{-/if-}>维持待审批状态</option>
					<option value="-1"{-if -1==$rOne.status-} selected="selected"{-/if-}>审批不通过</option>
				</select>
				&nbsp; <input type="submit" name="action" value="update" />
				&nbsp; <input type="submit" name="action" value="delete" onclick="return confirm('注意，删除该记录不会改变用户的现有身份。删除？');" />
				&nbsp; <input type="submit" name="action" value="cancel" />
			</td>
		</tr>
		</form>
	</table>
</div>
{- else -}
sth wrong: no $sAction.
{- /if -}

<!-- </main> -->
	</div>
</div>

{- include file="`$__PHY_WEB``$__DIR_ADM`/block/footer.tpl" -}

</div><!-- end all -->
</body>
</html>
